<template>
    <div>
         <van-swipe>
        <van-swipe-item  v-for="(item,index) in slideshow" :key="index">
          <img :src="item.picUrl" />
        </van-swipe-item>
      </van-swipe>
    </div>
</template>
<script>
    export default {
  data() {
    return {
      slideshow: []
    };
  },
  mounted() {
    this.$network
      .getBanner()
      .then(res => {
        // console.log(res.data.data);
        this.slideshow = res.data.data;
      })
      .catch(error => {
        console.log(error);
      });
  }
};
</script>